/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

/**
 *
 * @author juli
 */ 
public class Manager extends Dao{
    public String userName;
    public String email;
 
    
    public Manager(String email){
        Dao d = new Dao();
        try {
            d.conectar();
            
            setUserName(d.getNameMByEmail(email));
            
            d.desconectar();
        } catch (Exception e) {}
    }
    
    public String getUserName() {
        return userName;
    }
 
    public String getEmail() {
        return email;
    }
 
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
}
